;
(function (window, angular) {
    'use strict';
    angular.module("Controller.Maintenance", [
            "Controller.Maintenance.Customer", "Controller.Maintenance.Vehicle", "Controller.Maintenance.Repair",
            "Controller.Maintenance.MarketingCenterArea", "Controller.Maintenance.InstallBill", "Controller.Maintenance.fanchangHexiao"
        ])
        .config(['$stateProvider', function ($stateProvider) {

            $stateProvider.state("app.maintenance.customer", {
                url: "/customer",
                templateUrl: "view/maintenance/customer.html",
                controller: "CustomerCtrl"
            });

            $stateProvider.state("app.maintenance.vehicle", {
                url: "/vehicle",
                templateUrl: "view/maintenance/vehicle.html",
                controller: "VehicleCtrl",
                params: {
                    type: '',
                    user: {}
                }
            });

            $stateProvider.state("app.maintenance.repair", {
                url: "/repair",
                templateUrl: "view/maintenance/repair.html",
                controller: "RepairCtrl",
                params: {
                    engineNo: ''
                }
            });

            $stateProvider.state("app.maintenance.fanchangHexiao", {
                url: "/fanchangHexiao",
                templateUrl: "view/maintenance/fanchangHexiao.html",
                controller: "FanchangHexiaoCtrl",
            });

            $stateProvider.state("app.maintenance.marketingCenterArea", {
                url: "/marketingCenterArea",
                templateUrl: "view/maintenance/marketingCenterArea.html",
                controller: "MarketingCenterAreaCtrl"
            });

            $stateProvider.state("app.maintenance.installBill", {
                url: "/installBill",
                templateUrl: "view/maintenance/installBill.html",
                controller: "InstallBillCtrl"
            });
        }]);
})(window, window.angular);